<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>平台介绍</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<meta name="format-detection" content="email=no" />
<meta name="apple-mobile-web-app-title" content="">
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.js"></script>
<style>
      *{margin:0; padding:0;}
     .header{width:100%; height:40px; background-color:#f6f6f6; font-size:16px; color:#ee4000; position:fixed; top:0; z-index:999; }
     .back{ text-decoration:none; display:block; width:60px; height:40px; position:absolute; top:0; left:0; 
	        background:url("/restaurant_static/images/narrow2.png") center center no-repeat;  background-size:16%;
	 }
	.header span{ display:block; text-align:center; width:100px; margin:0 auto; line-height:40px;}
	.content{margin-top:60px;}
        .pwpage {background-color:#42424E;  position:relative; width: 280px; margin:0 auto; margin-top:50px; background-color: #fff;border-radius: 10px;border: 1px solid rgba(0, 0, 0, 0.1); text-align:center;overflow:hidden}
        .pwd{padding: 10px 10px 15px 10px;}
        .pwpage h1 {font-size:18px;text-align:center;margin:5px 0 5px 0;color:#ff5b35}
        .pwpage .erweima{ width:250px;}
        .pwpage .title{ font-size:14px;margin-bottom: 20px }
        .pwpage .key{ font-size:14px;color:#ff5b35; margin-top:5px;}
</style>
</head>
<body style="background-color:white">
<div class="header">
    <a class="back" href="javascript:void(0)" onclick="javascript:history.go(-1);return false;"></a>
	<span>关注公众号</span>
</div>
<div class="content">        
  <div class="pwpage">
	<div class="pwd">
		<h1>长按二维码识别并关注</h1>
		<p class="title"><?php echo '成都雅建';?></p>
                <img class="erweima" src="<?php echo $_BASE_DIR ?>img/yajian.jpg">
	</div>
</div>


     <?php 

   $protocol = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
   $url = $protocol.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
   $sharelink['title'] =  '成都雅建在线商城';
   $sharelink['title'] = $title.$sharelink['title'];
   $sharelink['url'] = $url.'/recuid/'.$_SESSION['user']['id'];
   $sharelink['ico'] = $shareshop->share_ico?$shareshop->share_ico:'';
   $host = Helper_Common::getRequestHost();
   $oldpath = str_replace($host, '', $sharelink['ico']);
   global $root_dir;
   $sharelink['ico'] =  $root_dir . '/' . 'public'. '/'.$oldpath;

   if(!is_file($sharelink['ico'])){
       Helper_Phpqrcode::create($sharelink['url'], $sharelink['ico']);
   }
   $sharelink['desc'] = $shareshop->share_desc?$shareshop->share_desc:'成都雅建在线商城，更快捷';

    ?>
    
	 <script>
wx.ready(function(){
	var shareData = {
		title: "<?php echo $sharelink['title']?>",
		desc: "<?php echo $sharelink['desc']?>",
		link: "<?php echo $sharelink['url']?>",
		imgUrl: "<?php echo $sharelink['ico']?>",
		trigger: function (res) {},
		complete: function (res) {},
		success: function (res) {},
		cancel: function (res) {},
		fail: function (res) {}
	};
	wx.onMenuShareTimeline(shareData);
	wx.onMenuShareAppMessage(shareData);
	wx.onMenuShareQQ(shareData);
	wx.onMenuShareWeibo(shareData);
	wx.onMenuShareQZone(shareData);
	
});
</script>



	 
	 

</div>
                
</body>
</html>
